﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "LIMSProject";
	string DBTablePK = "ID";
	string DBTableTitle = "";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="LIMSProject." name="LIMSProject." value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="LIMSProject." />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="LIMSProject" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "LIMSProject", fieldStatus, displayModel);
	});
</script>
<p><br/></p><p><br/></p><p><br/></p><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="center"><span class="title">新 增 项 目 表<br/></span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" valign="middle" align="left"><p class="titleO">仪器信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">项目名称</p><p class="txt"><input type="text" id="LIMSProject.ProjectsName" type1="flow_text" name="LIMSProject.ProjectsName" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></p></td><td class="top" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">实验仪器名称</p><input type="text" id="LIMSProject.ExperimentalInstrument" type1="flow_text" name="LIMSProject.ExperimentalInstrument" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr class=""><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">选择测定化合物<br/></p><input type="text" id="LIMSProject.Compound" type1="flow_text" name="LIMSProject.Compound" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">测定指标<br/></p><input type="text" id="LIMSProject.Standard" type1="flow_text" name="LIMSProject.Standard" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td></tr><tr class=""><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">创建时间</p><p class="txt"><input type="text" type1="flow_datetime" id="LIMSProject.DateTime" name="LIMSProject.DateTime" value="@(YJ.Utility.DateTimeNew.LongDateTime)" defaultvalue="%40(YJ.Utility.DateTimeNew.LongDateTime)" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></p></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">创建人</p><p class="txt"><input type="text" id="LIMSProject.Founder" type1="flow_text" name="LIMSProject.Founder" value="@(YJ.Platform.Users.CurrentUserName)" valuetype="0" isflow="1" class="mytext" title="" align="left"/></p></td></tr><tr><td rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><table class="flowformsubtable" data-showindex="1" data-sortstring="" style="width:99%;margin:0 auto;" issubflowtable="1" id="subtable_LIMSScope_ID_ID_ProjectID" cellspacing="1" cellpadding="0"><thead><tr><th style="text-align:center;width:50px;">序号</th><th style="text-align:left;padding-right:3px;">指标名称<input type="hidden" name="flowsubtable_id" value="LIMSScope_ID_ID_ProjectID"/><input type="hidden" name="flowsubtable_LIMSScope_ID_ID_ProjectID_secondtable" value="LIMSScope"/><input type="hidden" name="flowsubtable_LIMSScope_ID_ID_ProjectID_primarytablefiled" value="ID"/><input type="hidden" name="flowsubtable_LIMSScope_ID_ID_ProjectID_secondtableprimarykey" value="ID"/><input type="hidden" name="flowsubtable_LIMSScope_ID_ID_ProjectID_secondtablerelationfield" value="ProjectID"/></th><th style="text-align:left;padding-right:3px;">指标</th><th style="text-align:left;padding-right:3px;">截断值上限</th><th style="text-align:left;padding-right:3px;">截断值下限</th><th style="text-align:left;padding-right:3px;">判读结果</th><th style="text-align:left;padding-right:3px;">备注</th><th></th></tr></thead><tbody><tr type1="listtr"><td style="text-align:center;"><label name="showindex">1</label></td><td colname="LIMSScope_StandardName" iscount="0" style="text-align:left;padding-right:3px;"><input type="hidden" name="hidden_guid_LIMSScope_ID_ID_ProjectID" value="c3921a011a497e3b5c7cf904975d5932"/><input type="hidden" name="flowsubid" value="LIMSScope_ID_ID_ProjectID"/><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_StandardName" id="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_StandardName" colname="LIMSScope_StandardName" value=""/></td><td colname="LIMSScope_Standard" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_Standard" id="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_Standard" colname="LIMSScope_Standard" value=""/></td><td colname="LIMSScope_ScopeUpper" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_ScopeUpper" id="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_ScopeUpper" colname="LIMSScope_ScopeUpper" value=""/></td><td colname="LIMSScope_ScopeLower" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_ScopeLower" id="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_ScopeLower" colname="LIMSScope_ScopeLower" value=""/></td><td colname="LIMSScope_Result" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_Result" id="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_Result" colname="LIMSScope_Result" value=""/></td><td colname="LIMSScope_Note" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_Note" id="LIMSScope_ID_ID_ProjectID_c3921a011a497e3b5c7cf904975d5932_LIMSScope_Note" colname="LIMSScope_Note" value=""/></td><td><input type="button" class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);"/><input type="button" class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);"/></td></tr></tbody></table></td></tr><tr><td rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><table class="flowformsubtable" data-showindex="1" data-sortstring="" style="width:99%;margin:0 auto;" issubflowtable="1" id="subtable_LIMSRules_ID_ID_ProjectID" cellspacing="1" cellpadding="0"><thead><tr><th style="text-align:center;width:50px;">序号</th><th style="text-align:left;padding-right:3px;">病症名称<input type="hidden" name="flowsubtable_id" value="LIMSRules_ID_ID_ProjectID"/><input type="hidden" name="flowsubtable_LIMSRules_ID_ID_ProjectID_secondtable" value="LIMSRules"/><input type="hidden" name="flowsubtable_LIMSRules_ID_ID_ProjectID_primarytablefiled" value="ID"/><input type="hidden" name="flowsubtable_LIMSRules_ID_ID_ProjectID_secondtableprimarykey" value="ID"/><input type="hidden" name="flowsubtable_LIMSRules_ID_ID_ProjectID_secondtablerelationfield" value="ProjectID"/></th><th style="text-align:left;padding-right:3px;">规则</th><th></th></tr></thead><tbody><tr type1="listtr"><td style="text-align:center;"><label name="showindex">1</label></td><td colname="LIMSRules_SymptomsName" iscount="0" style="text-align:left;padding-right:3px;"><input type="hidden" name="hidden_guid_LIMSRules_ID_ID_ProjectID" value="6432b4c6e4e686263f46e6952e10a91b"/><input type="hidden" name="flowsubid" value="LIMSRules_ID_ID_ProjectID"/><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSRules_ID_ID_ProjectID_6432b4c6e4e686263f46e6952e10a91b_LIMSRules_SymptomsName" id="LIMSRules_ID_ID_ProjectID_6432b4c6e4e686263f46e6952e10a91b_LIMSRules_SymptomsName" colname="LIMSRules_SymptomsName" value=""/></td><td colname="LIMSRules_Rules" iscount="0" style="text-align:left;padding-right:3px;"><input type="text" class="mytext" issubflow="1" type1="subflow_text" name="LIMSRules_ID_ID_ProjectID_6432b4c6e4e686263f46e6952e10a91b_LIMSRules_Rules" id="LIMSRules_ID_ID_ProjectID_6432b4c6e4e686263f46e6952e10a91b_LIMSRules_Rules" colname="LIMSRules_Rules" value=""/></td><td><input type="button" class="mybutton" style="margin-right:4px;" value="增加" onclick="formrun.subtableNewRow(this);"/><input type="button" class="mybutton" value="删除" onclick="formrun.subtableDeleteRow(this);"/></td></tr></tbody></table></td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">备注</p><textarea isflow="1" type1="flow_textarea" id="LIMSProject.Note" name="LIMSProject.Note" class="mytext" style="width:80%; height:40px;"></textarea></td></tr></tbody></table>